<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="{:url('wechat/admin.config/save')}" method="post" id="cp-form">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="{if request()->action() == 'index'}layui-this{/if}">
                        <a href="{:url('wechat/admin.config/index')}">配置设置</a>
                    </li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <div class="layui-elem-quote">
                                <p>公众号</p>
                            </div>
                        </div>
                        <div class="layui-col-md12 ">
                            <div class="layui-tab-item layui-show">

                                <div class="layui-form-item">
                                    <label class="layui-form-label"> AppId  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="official[app_id]" value="{$official.official.app_id|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">开发者ID是公众号开发识别码，配合开发者密码可调用公众号的接口能力。</div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label"> AppSecret  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="official[secret]" value="{$official.official.secret|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">开发者密码是校验公众号开发者身份的密码，具有极高的安全性。切记勿把密码直接交给第三方开发者或直接存储在代码中。如需第三方代开发公众号，请使用授权方式接入。</div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label"> 令牌(Token)  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="official[token]" value="{$official.official.token|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">请保持和公众号一致</div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label"> 消息加解密密钥  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="official[aes_key]" value="{$official.official.aes_key|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">请保持和公众号一致</div>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="layui-col-md12">
                            <div class="layui-elem-quote">
                                <p>小程序</p>
                            </div>
                        </div>
                        <div class="layui-col-md12 ">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"> AppId  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="minprogram[app_id]" value="{$official.minprogram.app_id|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">开发者ID是小程序开发识别码，配合开发者密码可调用小程序的接口能力。</div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"> AppSecret  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="minprogram[secret]" value="{$official.minprogram.secret|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">开发者密码是校验小程序开发者身份的密码，具有极高的安全性。切记勿把密码直接交给第三方开发者或直接存储在代码中。如需第三方代开发公众号，请使用授权方式接入。</div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md12">
                            <div class="layui-elem-quote">
                                <p>微信开放平台</p>
                            </div>
                        </div>
                        <div class="layui-col-md12 ">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"> AppId  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="open[app_id]" value="{$official.open.app_id|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">开发者ID是开放平台开发识别码，配合开发者密码可调用小程序的接口能力。</div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"> AppSecret  <span class="request-tips">*</span></label>
                                    <div class="layui-input-block">
                                        <input type="text" name="open[secret]" value="{$official.open.secret|default=''}" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                                        <div class="layui-word-aux">开发者密码是校验开放平台开发者身份的密码，具有极高的安全性。切记勿把密码直接交给第三方开发者或直接存储在代码中。如需第三方代开发公众号，请使用授权方式接入。</div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
